#ifndef __BORROW_SERVICE_ACHIEVE__HH__
#define __BORROW_SERVICE_ACHIEVE__HH__ 

#include "User.h"
#include "Classbook.h"
#include "Borrow_service.h"
#include "Borrow_data_achieve.h"
#include <vector>

namespace LB
{
class Borrow_service_achieve: public Borrow_service
{
	Borrow_data *bor_file;				//数据接口指针
	std::vector<Classbook> v_classes;	//存储书类信息
	std::vector<User>v_users;			//存储用户信息
	User m_user;						//借阅者
public:
    Borrow_service_achieve(void);
	bool loginsuccess(int user_id,char* password);		
	void topborrowbook(void);
	void toppraisebook(void);
	bool findbook(int bookid);
	bool findbook(char* bookname);
	bool findkeyword(char* keyword);
	void scorebook(int bookid,int score,char* comment);
	void listclass(void);
	void listbook(int classid);
	void listmymsg(void);
	~Borrow_service_achieve(void);
};
	

	
}

#endif